package com.ruoyi.book.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 图书信息对象 book
 *
 * @author ruoyi
 * @date 2025-01-21
 */
public class Book extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 封面 */
    @Excel(name = "封面")
    private String cover;

    /** 简介 */
    @Excel(name = "简介")
    private String descr;

    /** 作者 */
    @Excel(name = "作者")
    private String author;

    /** 出版社 */
    @Excel(name = "出版社")
    private String publisher;

    /** 出版日期 */
    @Excel(name = "出版日期")
    private String date;

    /** 价格 */
    @Excel(name = "价格")
    private String price;

    /** ISBN */
    @Excel(name = "ISBN")
    private String isbn;

    /** 库存 */
    @Excel(name = "库存")
    private Long store;

    /** 分类ID */
//    @Excel(name = "分类ID")
    private Long categoryId;

    /** 是否上架 */
//    @Excel(name = "是否上架")
    private Integer grounding;

    /** 是否推荐 */
//    @Excel(name = "是否推荐")
    private Integer recommend;

    @Excel(name = "分类名称")
    private String CategoryName;
    @Excel(name = "是否上架")
    private String up;
    @Excel(name = "是否推荐")
    private String tuijian;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setCover(String cover)
    {
        this.cover = cover;
    }

    public String getCover()
    {
        return cover;
    }
    public void setDescr(String descr)
    {
        this.descr = descr;
    }

    public String getDescr()
    {
        return descr;
    }
    public void setAuthor(String author)
    {
        this.author = author;
    }

    public String getAuthor()
    {
        return author;
    }
    public void setPublisher(String publisher)
    {
        this.publisher = publisher;
    }

    public String getPublisher()
    {
        return publisher;
    }
    public void setDate(String date)
    {
        this.date = date;
    }

    public String getDate()
    {
        return date;
    }
    public void setPrice(String price)
    {
        this.price = price;
    }

    public String getPrice()
    {
        return price;
    }
    public void setIsbn(String isbn)
    {
        this.isbn = isbn;
    }

    public String getIsbn()
    {
        return isbn;
    }
    public void setStore(Long store)
    {
        this.store = store;
    }

    public Long getStore()
    {
        return store;
    }
    public void setCategoryId(Long categoryId)
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId()
    {
        return categoryId;
    }
    public void setGrounding(Integer grounding)
    {
        this.grounding = grounding;
    }

    public Integer getGrounding()
    {
        return grounding;
    }
    public void setRecommend(Integer recommend)
    {
        this.recommend = recommend;
    }

    public Integer getRecommend()
    {
        return recommend;
    }

    public String getCategoryName() {
        return CategoryName;
    }

    public void setCategoryName(String categoryName) {
        CategoryName = categoryName;
    }

    public String getUp() {
        return up;
    }

    public void setUp(String up) {
        this.up = up;
    }

    public String getTuijian() {
        return tuijian;
    }

    public void setTuijian(String tuijian) {
        this.tuijian = tuijian;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", cover='" + cover + '\'' +
                ", descr='" + descr + '\'' +
                ", author='" + author + '\'' +
                ", publisher='" + publisher + '\'' +
                ", date='" + date + '\'' +
                ", price='" + price + '\'' +
                ", isbn='" + isbn + '\'' +
                ", store=" + store +
                ", categoryId=" + categoryId +
                ", grounding=" + grounding +
                ", recommend=" + recommend +
                ", CategoryName='" + CategoryName + '\'' +
                ", up='" + up + '\'' +
                ", tuijian='" + tuijian + '\'' +
                '}';
    }

}
